var app = angular.module("BookMarketApp",["ngRoute"]);

app.config(function($routeProvider){
	$routeProvider
	.when("/", {
		controller: "BookController",
		templateUrl: "./html/book.html"
	})
	.when("/ireader/:userId",{
		controller: "BookController",
		templateUrl: "./html/book.html"
	})
	.otherwise({
		redirectTo: '/'
	})
	
});